// 质检
import { req } from '@/utils/request'

// —— 质检报验 ——

// 列表
export const listInspection = data => req.get('/gcxt/pc/inspection/page', data)
// 详情
export const getInspection = data => req.get('/gcxt/pc/inspection/get', data)
// 撤销
export const revocation = data => req.post('/gcxt/pc/inspection/revocation', data)
// 撤销原因
export const listCancelReason = data => req.get('/gcxt/cancelreason/list', data)
// 报验的房间
export const getInspectionRoom = data => req.get('/gcxt/pc/inspection/getInspectionRoom', data)
// 报验的桩基
export const getInspectionPile = data => req.get('/gcxt/pc/inspection/getInspectionPile', data)
// 报验的公区
export const getInspectionPublic = data => req.get('/gcxt/pc/inspection/getInspectionPublic', data)
// 撤销的报验
export const getCancelInspectList = data => req.get('/gcxt/pc/inspection/getCancelInspectList', data)

// —— 质检整改 ——

// 整改通知
export const rectifyList = data => req.get('/gcxt/report/rectifyList', data)
// 基础工程整改通知
export const listBeCheckResult = data => req.get('/gcxt/beCheckresult/page', data)
// 整改通知详情
export const getCheckRecord = data => req.get('/gcxt/checkRecord/get', data)

// —— 质检工序进度 ——

// 根据项目查询楼栋的统计数据
export const projectOverall = data => req.post('/gcxt/schedule/projectOverall', data)
// 楼栋计划
export const getBuildingPlan = data => req.get('/gcxt/schedule/getBuildingPlan', data)
// 楼栋进度
export const getBuildingView = data => req.get('/gcxt/schedule/getBuildingView', data)
// 单工序进度
export const getSingleProgress = data => req.get('/gcxt/schedule/getSingleProgress', data)
// 基础工程报验情况
export const getBuildingBeState = data => req.get('/gcxt/schedule/getBuildingBeState', data)

// 获取楼栋对象验收记录情况
export const getInspectionRecord = data => req.post('/gcxt/report/getInspectionRecord', data)
// 专业类别
export const getSpecialType = data => req.post('/mobile/common/specialType', data)
